Skip to main content
Refunds one PAID tender that still has money left. Omit amount and items for a full refund. Send amount or items, not both. The call is idempotent by idempotency_key.
Requires a Storefront API access token from Token exchange. The order must already be placed.
In @fire-spark/storefront, call order.refundTender(tenderId, { amount, reason }).

Path parameters

Request body

Response

Returns 200 with the order. refunded_total on the tender increases by the refunded amount. A full refund sets the tender status to REFUNDED. A provider result of NEEDS_REVIEW still applies the refund and reports the case for review. A rejection returns 502 and leaves the tender unchanged.

Error responses